package com.ruoyi.eqmonitor.dispose.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.eqmonitor.dispose.domain.ExteriorMonitorData;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 设备监测时序数据
 */
public interface IExteriorMonitorDataService extends IService<ExteriorMonitorData> {
    /**
     * 创建月份表
     */
    void createMonthTable(String yyyy_mm);

    void insert(ExteriorMonitorData monitorData);

    void insertBeach(List<ExteriorMonitorData> monitorDataList);

    double getMaxValueBySnCodeAndTime(LocalDateTime start, LocalDateTime end, String snCode);

    long countBySncodeAndTimeAndHalfData(String snCode, LocalDateTime start, LocalDateTime end, double halfData);
}
